package cn.kgc.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 课工场
 * @date 2025/1/14
 * @description
 */
@RestController
@RequestMapping("nacos1")
public class NacosController {

    @Value("${server.port}")
    private String port;


    @GetMapping("m1")
    public String method1(){

        return "NacosController service1 method1 ok port="+port;
    }

}
